/**
 * 	 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *   @author Colin Redmond
 *   Copyright (C) 2011 Colin Redmond
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package com.cred.industries.core.transferObj.result;

import javax.xml.bind.annotation.XmlEnum;

/**
 * easy place to store possible return codes sent to the client
 */
@XmlEnum
public enum ReturnCodes {
	SUCCESS,
	UNKNOWN_ERROR,
	EXCEPTION,
	PERSONA_NAME_ALREADY_TAKEN,
	PERSONA_NAME_CANT_BE_EMPTY,
	PERSONA_NAME_TOO_SHORT,
	PERSONA_NAME_TOO_LONG,
	PERSONA_HAS_NO_ROLES,
	FIRST_NAME_CANT_BE_EMPTY,
	LAST_NAME_CANT_BE_EMPTY,
	EMAIL_CANT_BE_EMPTY,
	EMAIL_ADDRESS_TOO_LONG,
	INVALID_EMAIL_ADDRESS,
	PASSWORD_TO_SHORT,
	PASSWORD_TO_LONG,
	INVALID_BIRTHDATE,
	FIRST_NAME_TOO_LONG,
	LAST_NAME_TOO_LONG,
	INVALID_SESSION,
	UNKNOWN_DATA_TYPE,
	DATABASE_ERROR,
}

